function columns(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: '',
      key: 'rowIndex',
      width: 60,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      title: '类型名称',
      align: 'center',
      dataIndex: 'typeName',
      key: 'typeName',
      
    },
    {
      title: '底稿编号',
      align: 'center',
      dataIndex: 'dgbh',
      key: 'dgbh'
    },
    {
      title: '项目名称',
      align: 'center',
      dataIndex: 'proName',
      key: 'proName',
      scopedSlots: {customRender: 'proName'}
    },
    {
      title: '问题描述',
      align: 'center',
      dataIndex: 'wtms',
      key: 'wtms',
      scopedSlots: {customRender: 'wtms'}
    },
    {
      title: '被审计单位',
      align: 'center',
      dataIndex: 'bsjdwName',
      key: 'bsjdwName',
      scopedSlots: {customRender: 'bsjdwName'}
    },
    {
      title: '事项',
      align: 'center',
      dataIndex: 'itemName',
      key: 'itemName'
    },
    {
      title: '撰写人',
      align: 'center',
      dataIndex: 'zxrText',
      key: 'zxrText',
      scopedSlots: {customRender: 'zxrText'}
    },
    {
      title: '定性',
      align: 'center',
      dataIndex: 'dingxing',
      key: 'dingxing'
    },
    {
      title: '状态',
      align: 'center',
      dataIndex: 'stateText',
      key: 'stateText'
    },
    {
      title: '生成时间',
      align: 'center',
      dataIndex: 'createTime',
      key: 'createTime',
      scopedSlots: {customRender: 'createTime'}
    },
    {
      width: 120,
      dataIndex: 'action',
      align: 'center',
      title:'操作',
      scopedSlots: {customRender: 'action'}
    }
  ]
  return cols
}

export default columns